ROOTFS_DIR = /nfs/rootfs

ifeq ($(KERNELRELEASE), )

#KERNEL_DIR = /home/chh001/kernel/linux-4.14.8
KERNEL_DIR = /lib/modules/$(shell uname -r)/build

CUR_DIR = $(shell pwd)

all:
	make -C $(KERNEL_DIR) M=$(CUR_DIR) modules
clean:
	make -C $(KERNEL_DIR) M=$(CUR_DIR) clean
install:
	cp -raf *.ko $(ROOTFS_DIR)/drv_module
else
obj-m += bus.o
obj-m += device.o
obj-m += driver.o


endif
